package com.aliengen.thingple.thingple.fillingstation;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.aliengen.thingple.thingple.AbstractThingpleActivity;
import com.aliengen.thingple.thingple.R;
import com.aliengen.thingple.thingple.tag.CylinderTag;

/**
 * This class is part of the Thingple mobile application for the CMC168 Handheld reader.
 *
 * Copyright AlienGen Limited 2016. All rights reserved.
 *
 * @author Timothé Mermet-Buffet <tim@aliengen.com>
 */
public class NonConformingActivity extends AbstractThingpleActivity {

    protected CylinderTag cylinder;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_cylinder_nc);
        setOperatorName();

        this.cylinder = (CylinderTag) getIntent().getExtras().get("cylinder_tag");

        setText(R.id.cylinderReference, R.string.cylinder_reference, this.cylinder.getReference());
    }

    public void onClickValidate(View view){
        Intent nextScreen = new Intent(getApplicationContext(), FillingStationActivity.class);

        startActivity(nextScreen);

        this.finish();
    }
}
